package com.woniu.airent.service.impl;

import com.woniu.airent.entity.Extra;
import com.woniu.airent.mapper.ExtraMapper;
import com.woniu.airent.service.ExreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExreaServiceImpl implements ExreaService {
    @Autowired
    ExtraMapper extraMapper;

    @Override
    public List<Extra> showAllExtra() {
        List<Extra> extraList = extraMapper.selectAll();
        return extraList;
    }

    @Override
    public List<Extra> findMyExtra(String houseNumber) {
        return extraMapper.selectMyExtra(houseNumber);
    }
}
